package com.vip.sys.modular.resources.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.vip.sys.modular.resources.entity.Resources;
import com.vip.sys.modular.resources.params.AddResourcesParams;
import com.vip.sys.modular.resources.vo.ResourcesGrantVo;

import java.util.List;

/**
 * @author tianlianyin
 * @date 2024/11/11
 */

public interface ResourcesService extends IService<Resources> {
    /*
     * 获取资源树
     */
    List<Resources> getResourcesTree();
    /*
     * 添加资源
     */

    boolean add(AddResourcesParams addResourcesParams);

    /**
     *  获取路由
     */

    List<Resources> getRoute();
    /*
     * 编辑资源
     */

    boolean edit(Resources resources);

    /**
     *  获取授权资源树
     */

    List<ResourcesGrantVo> getGrantedResourcesTree();
}
